import { create } from "zustand";
import { ThemeEnum } from "@/enums/themeEnum";

type State = {
  language: ThemeEnum;
};

type Action = {
  updateLanguages: (v: ThemeEnum) => void;
};

export const useThemeStore = create<State & Action>((set) => ({
  language: ThemeEnum.CN,
  updateLanguages: (v) =>
    set(() => {
      return { language: v };
    }),
}));
